package com.xl.xlyx.serviceImpl;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.xl.xlyx.service.TokenManager;

public class DefaultTokenManager implements TokenManager {
	
	private static Map<String, String> tokenMap = new ConcurrentHashMap<String, String>();

	public String createToken(String username) {
		return username;
		/*String token = CodecUtil.createUUID();  
        tokenMap.put(token, username);  
        return token;  */
	}

	public boolean checkToken(String token) {
		return false;
		/*  return !StringUtil.isEmpty(token) && tokenMap.containsKey(token);*/
	}

}
